gdkarray: Add support for GDK_ARRAY_NO_MEMSET
authorAlexander Larsson <alexl@redhat.com>
Tue, 29 Sep 2020 14:00:30 +0000 (16:00 +0200)
committerAlexander Larsson <alexl@redhat.com>
Tue, 29 Sep 2020 14:02:59 +0000 (16:02 +0200)
commit18b8b499de22907ad1177953fb8ef734c721b586
treeeadc6aa4f6680a37278fb016713653dee0c44305
parent8a0dd452d2d9141e68f2d5eb82475735adb7c861
gdkarray: Add support for GDK_ARRAY_NO_MEMSET

If all your callers already initialize the array element as needed,
then we don't need to memset it to zero first.

This is pretty useful for the snapshot state stack, because due
to the per-node-type data area the elements on the stack are
quite large, but often a lot of it is not used.
gdk/gdkarrayimpl.c